package net.infamily.logic.impl;

import net.infamily.dao.FamilyDao;
import net.infamily.dao.ProfileDao;
import net.infamily.dao.UserDao;
import net.infamily.logic.FamilyLogic;
import net.infamily.logic.ProfileLogic;
import net.infamily.logic.UserLogic;

import com.google.inject.AbstractModule;
import com.google.inject.Scopes;

public class LogicModule extends AbstractModule {

	@Override
	protected void configure() {
		requireBinding(FamilyDao.class);
		requireBinding(ProfileDao.class);
		requireBinding(UserDao.class);
		bind(FamilyLogic.class).to(FamilyLogicImpl.class).in(Scopes.SINGLETON);
		bind(ProfileLogic.class).to(ProfileLogicImpl.class).in(Scopes.SINGLETON);
		bind(UserLogic.class).to(UserLogicImpl.class).in(Scopes.SINGLETON);
	}
}
